//
//  FCSDKWebViewController.h
//  FCSDK
//
//  Created by mac on 2022/7/26.
//

#import <FCSDK/FCSDK.h>
#import <WebKit/WebKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface FCSDKParamModel : NSObject

@property (nonatomic , copy) NSString *key;
@property (nonatomic , copy) NSString *value;

@end

@interface FCSDKWeakScriptMsgDelegate : NSObject<WKScriptMessageHandler>

@property (nonatomic, weak) id<WKScriptMessageHandler> scriptDelegate;

- (instancetype)initWithDelegate:(id<WKScriptMessageHandler>)scriptDelegate;

@end
@interface FCSDKWebViewController : FCSDKViewController

@property (nonatomic , strong) WKWebView  *webView;
@property (nonatomic , strong) WKWebViewConfiguration *configuration;

@property (nonatomic , strong) UIProgressView *progress; //进度条
@property (nonatomic , strong) UIColor *loadingProgressColor;// 进度条颜色
@property (nonatomic , strong) UIButton *closeBtn;  //关闭按钮

@property (nonatomic , copy) NSString *htmlUrl;//请求的url
@property(nonatomic, assign) BOOL isFcmall;
@property (nonatomic , copy) void (^dismissBlock)(void);//点击返回键的回调

- (void)fcWebBrowse:(WKWebView *)webView  navigationAction:(WKNavigationAction *)navigationAction  decisionHandler:(void (^)(WKNavigationActionPolicy))decisionHandler result:(void (^)(BOOL stop))result;
@end

NS_ASSUME_NONNULL_END
